run-minio:
	# 编译程序
	GOOS=linux GOARCH=amd64 go build -o app/minio/app app/minio/main.go
	# 编译 docker 容器
	docker build -f app/minio/Dockerfile . -t minio_service
	# 运行容器
	docker run -itd minio_service

generate-grpc-cert:
	openssl ecparam -genkey -name secp384r1 -out ./certs/server.key
	openssl req -nodes -new -x509 -sha256 -days 3650 -config ./certs/server.cnf -extensions 'req_ext' -key ./certs/server.key -out ./certs/server.crt -subj "/CN=yimanwang.com"

